#include "searcher.hpp"
#include <iostream>
#include <string>
#include <jsoncpp/json/json.h>



int main()
{
    const static std::string raw_data = "./data/raw_html/raw.txt";

    ns_searcher::Searcher *searcher = new ns_searcher::Searcher;
    searcher->InitSearcher(raw_data);
    std::string query, json_str;
    while (true)
    {
        std::cout << "Please enter your search query# ";
        std::cin >> query;
        searcher->Search(query, &json_str);
        std::cout << json_str << std::endl;
    }
    

    return 0;
}
